﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S_Incident.Domains.EventHandling
{
    public class NodeEventDispositionDto
    {
        /// <summary>
        /// 事件id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 事件描述
        /// </summary>
        [SugarColumn(ColumnDescription = "事件描述", Length = 200, IsNullable = true)]
        public string? IncidentDescription { get; set; }
        /// <summary>
        /// 事件类型
        /// </summary>
        [SugarColumn(ColumnDescription = "事件类型", Length = 200, IsNullable = true)]
        public string? EventType { get; set; }
        /// <summary>
        /// 事件来源
        /// </summary>
        [SugarColumn(ColumnDescription = "事件来源", Length = 200, IsNullable = true)]
        public string? EventSource { get; set; }
        /// <summary>
        /// 上报时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? ReportingTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 上报人
        /// </summary>
        [SugarColumn(ColumnDescription = "上报人", Length = 200, IsNullable = true)]
        public string? Informant { get; set; }

        /// <summary>
        /// 预警状态
        /// </summary>
        public int AlertStatus { get; set; }
        /// <summary>
        /// 当前节点
        /// </summary>
        public int NodeId { get; set; }
        /// <summary>
        /// 节点类型
        /// </summary>
        [SugarColumn(ColumnDescription = "节点类型", Length = 200, IsNullable = true)]
        public string? NodeType { get; set; }
    }
}
